<?php

class Sildeable extends CWidget {
	
	public $width;
	public $height;
	public $items;
	public $direction = 'top';
	public $htmlOptions = array();
	public $tagName = 'div';
	
	public function run() {
		$htmlOptions = $this->htmlOptions;
		if(isset($htmlOptions['class'])) {
			$htmlOptions['class'] .= ' slideable-wrapper';
		} else {
			$htmlOptions['class'] = 'slideable-wrapper';
		}
		$htmlOptions['width'] = $this->width;
		$htmlOptions['height'] = $this->height;
		Scrollerable::registerScript();
		$this->renderInternal($this->getViewFile(
				'application.views.partials.platform.slideable'
			), array(
			'width' => $this->width,
			'height' => $this->height,
			'items' => $this->items,
			'htmlOptions' => $htmlOptions,
			'tagName' => $this->tagName,
			'direction' => $this->direction,
		));
		
	}
	

}

?>